pkgname=kjsembed
pkgver=5.36.0
pkgrel=1
pkgdesc='Embedded JS'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="qt5-qtsvg ki18n kjs"
makedepends="extra-cmake-modules qt5-qttools-dev kdoctools python qt5-qtsvg-dev kjs"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="b6184303c99d1f3935f1645fd8db839b09d92868b348d0bdf0f6a54116a0e3a5da96b55c74ec415f755f6f71f1cee7deaf1750ba6f41ba87ca7e02bde276e7b1  kjsembed-5.36.0.tar.xz"
